package com.szyt.basicframe.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author mx
 * @since 2025-07-06
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_exception_log")
@ApiModel(value = "SysExceptionLog对象", description = "")
public class SysExceptionLog {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableField(exist = false)
    private Long id;

    @ApiModelProperty("异常类型名称")
    @TableField("exception_name")
    private String exceptionName;

    @ApiModelProperty("异常信息")
    @TableField("exception_message")
    private String exceptionMessage;

    @ApiModelProperty("异常栈信息")
    @TableField("exception_stack")
    private String exceptionStack;

    @ApiModelProperty("接口请求方法名")
    @TableField("method_name")
    private String methodName;

    @ApiModelProperty("接口请求参数")
    @TableField("params")
    private String params;

    @ApiModelProperty("请求接口地址")
    @TableField("request_uri")
    private String requestUri;

    @ApiModelProperty("请求类型，如GET、POST")
    @TableField("request_method")
    private String requestMethod;

    @ApiModelProperty("ip地址")
    @TableField("ip_address")
    private String ipAddress;

    @ApiModelProperty("状态码")
    @TableField("status_code")
    private Integer statusCode;

    @ApiModelProperty("添加时间")
    @TableField("create_time")
    private LocalDateTime createTime;
}
